﻿using Ping9719.WpfEx;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace BaseUi.Views.PlcView
{
    public class informationData : INotifyPropertyChanged
    {
        /// <summary>
        /// 背景颜色
        /// </summary>
        private SolidColorBrush inborder1g1color = new SolidColorBrush();
        private SolidColorBrush inborder1g2color = new SolidColorBrush();
        private SolidColorBrush inborder1g3color = new SolidColorBrush();
        private SolidColorBrush inborder1g4color = new SolidColorBrush();
        private SolidColorBrush inborder1g5color = new SolidColorBrush();
        private SolidColorBrush inborder1g6color = new SolidColorBrush();
        private SolidColorBrush inborder1g7color = new SolidColorBrush();
        private SolidColorBrush inborder1g8color = new SolidColorBrush();
        private SolidColorBrush inborder1g9color = new SolidColorBrush();
        private SolidColorBrush inborder1g10color = new SolidColorBrush();
        private SolidColorBrush inborder1g11color = new SolidColorBrush();
        private SolidColorBrush inborder2g1color = new SolidColorBrush();
        private SolidColorBrush inborder2g2color = new SolidColorBrush();
        private SolidColorBrush inborder2g3color = new SolidColorBrush();
        private SolidColorBrush inborder2g4color = new SolidColorBrush();
        private SolidColorBrush inborder2g5color = new SolidColorBrush();
        private SolidColorBrush inborder2g6color = new SolidColorBrush();
        private SolidColorBrush inborder2g7color = new SolidColorBrush();
        private SolidColorBrush inborder2g8color = new SolidColorBrush();
        private SolidColorBrush inborder2g9color = new SolidColorBrush();
        private SolidColorBrush inborder2g10color = new SolidColorBrush();
        private SolidColorBrush inborder2g11color = new SolidColorBrush();
        private SolidColorBrush inborder3g1color = new SolidColorBrush();
        private SolidColorBrush inborder3g2color = new SolidColorBrush();
        private SolidColorBrush inborder3g3color = new SolidColorBrush();
        private SolidColorBrush inborder3g4color = new SolidColorBrush();
        private SolidColorBrush inborder3g5color = new SolidColorBrush();
        private SolidColorBrush inborder3g6color = new SolidColorBrush();
        private SolidColorBrush inborder3g7color = new SolidColorBrush();
        private SolidColorBrush inborder3g8color = new SolidColorBrush();
        private SolidColorBrush inborder3g9color = new SolidColorBrush();
        /// <summary>
        /// 字符
        /// </summary>
        private string inlabel1g1cont = "";
        private string inlabel1g2cont = "";
        private string inlabel1g3cont = "";
        private string inlabel1g4cont = "";
        private string inlabel1g5cont = "";
        private string inlabel1g6cont = "";
        private string inlabel1g7cont = "";
        private string inlabel1g8cont = "";
        private string inlabel1g9cont = "";
        private string inlabel1g10cont = "";
        private string inlabel1g11cont = "";
        private string inlabel2g1cont = "";
        private string inlabel2g2cont = "";
        private string inlabel2g3cont = "";
        private string inlabel2g4cont = "";
        private string inlabel2g5cont = "";
        private string inlabel2g6cont = "";
        private string inlabel2g7cont = "";
        private string inlabel2g8cont = "";
        private string inlabel2g9cont = "";
        private string inlabel2g10cont = "";
        private string inlabel2g11cont = "";
        private string inlabel3g1cont = "";
        private string inlabel3g2cont = "";
        private string inlabel3g3cont = "";
        private string inlabel3g4cont = "";
        private string inlabel3g5cont = "";
        private string inlabel3g6cont = "";
        private string inlabel3g7cont = "";
        private string inlabel3g8cont = "";
        private string inlabel3g9cont = "";
        
        public SolidColorBrush inborder1g1
        {
            get { return inborder1g1color; }
            set
            {
                inborder1g1color = value;

                OnPropertyChanged("inborder1g1");
            }
        }
        public SolidColorBrush inborder1g2
        {
            get { return inborder1g2color; }
            set
            {
                inborder1g2color = value;

                OnPropertyChanged("inborder1g2");
            }
        }
        public SolidColorBrush inborder1g3
        {
            get { return inborder1g3color; }
            set
            {
                inborder1g3color = value;

                OnPropertyChanged("inborder1g3");
            }
        }
        public SolidColorBrush inborder1g4
        {
            get { return inborder1g4color; }
            set
            {
                inborder1g4color = value;

                OnPropertyChanged("inborder1g4");
            }
        }
        public SolidColorBrush inborder1g5
        {
            get { return inborder1g5color; }
            set
            {
                inborder1g5color = value;

                OnPropertyChanged("inborder1g5");
            }
        }
        public SolidColorBrush inborder1g6
        {
            get { return inborder1g6color; }
            set
            {
                inborder1g6color = value;

                OnPropertyChanged("inborder1g6");
            }
        }
        public SolidColorBrush inborder1g7
        {
            get { return inborder1g7color; }
            set
            {
                inborder1g7color = value;

                OnPropertyChanged("inborder1g7");
            }
        }
        public SolidColorBrush inborder1g8
        {
            get { return inborder1g8color; }
            set
            {
                inborder1g8color = value;

                OnPropertyChanged("inborder1g8");
            }
        }
        public SolidColorBrush inborder1g9
        {
            get { return inborder1g9color; }
            set
            {
                inborder1g9color = value;

                OnPropertyChanged("inborder1g9");
            }
        }
        public SolidColorBrush inborder1g10
        {
            get { return inborder1g10color; }
            set
            {
                inborder1g10color = value;

                OnPropertyChanged("inborder1g10");
            }
        }
        public SolidColorBrush inborder1g11
        {
            get { return inborder1g11color; }
            set
            {
                inborder1g11color = value;

                OnPropertyChanged("inborder1g11");
            }
        }
        public SolidColorBrush inborder2g1
        {
            get { return inborder2g1color; }
            set
            {
                inborder2g1color = value;

                OnPropertyChanged("inborder2g1");
            }
        }
        public SolidColorBrush inborder2g2
        {
            get { return inborder2g2color; }
            set
            {
                inborder2g2color = value;

                OnPropertyChanged("inborder2g2");
            }
        }
        public SolidColorBrush inborder2g3
        {
            get { return inborder2g3color; }
            set
            {
                inborder2g3color = value;

                OnPropertyChanged("inborder2g3");
            }
        }
        public SolidColorBrush inborder2g4
        {
            get { return inborder2g4color; }
            set
            {
                inborder2g4color = value;

                OnPropertyChanged("inborder2g4");
            }
        }
        public SolidColorBrush inborder2g5
        {
            get { return inborder2g5color; }
            set
            {
                inborder2g5color = value;

                OnPropertyChanged("inborder2g5");
            }
        }
        public SolidColorBrush inborder2g6
        {
            get { return inborder2g6color; }
            set
            {
                inborder2g6color = value;

                OnPropertyChanged("inborder2g6");
            }
        }
        public SolidColorBrush inborder2g7
        {
            get { return inborder2g7color; }
            set
            {
                inborder2g7color = value;

                OnPropertyChanged("inborder2g7");
            }
        }
        public SolidColorBrush inborder2g8
        {
            get { return inborder2g8color; }
            set
            {
                inborder2g8color = value;

                OnPropertyChanged("inborder2g8");
            }
        }
        public SolidColorBrush inborder2g9
        {
            get { return inborder2g9color; }
            set
            {
                inborder2g9color = value;

                OnPropertyChanged("inborder2g9");
            }
        }
        public SolidColorBrush inborder2g10
        {
            get { return inborder2g10color; }
            set
            {
                inborder2g10color = value;

                OnPropertyChanged("inborder2g10");
            }
        }
        public SolidColorBrush inborder2g11
        {
            get { return inborder2g11color; }
            set
            {
                inborder2g11color = value;

                OnPropertyChanged("inborder2g11");
            }
        }
        public SolidColorBrush inborder3g1
        {
            get { return inborder3g1color; }
            set
            {
                inborder3g1color = value;

                OnPropertyChanged("inborder3g1");
            }
        }
        public SolidColorBrush inborder3g2
        {
            get { return inborder3g2color; }
            set
            {
                inborder3g2color = value;

                OnPropertyChanged("inborder3g2");
            }
        }
        public SolidColorBrush inborder3g3
        {
            get { return inborder3g3color; }
            set
            {
                inborder3g3color = value;

                OnPropertyChanged("inborder3g3");
            }
        }
        public SolidColorBrush inborder3g4
        {
            get { return inborder3g4color; }
            set
            {
                inborder3g4color = value;

                OnPropertyChanged("inborder3g4");
            }
        }
        public SolidColorBrush inborder3g5
        {
            get { return inborder3g5color; }
            set
            {
                inborder3g5color = value;

                OnPropertyChanged("inborder3g5");
            }
        }
        public SolidColorBrush inborder3g6
        {
            get { return inborder3g6color; }
            set
            {
                inborder3g6color = value;

                OnPropertyChanged("inborder3g6");
            }
        }
        public SolidColorBrush inborder3g7
        {
            get { return inborder3g7color; }
            set
            {
                inborder3g7color = value;

                OnPropertyChanged("inborder3g7");
            }
        }
        public SolidColorBrush inborder3g8
        {
            get { return inborder3g8color; }
            set
            {
                inborder3g8color = value;

                OnPropertyChanged("inborder3g8");
            }
        }
        public SolidColorBrush inborder3g9
        {
            get { return inborder3g9color; }
            set
            {
                inborder3g9color = value;

                OnPropertyChanged("inborder3g9");
            }
        }
        public string inlabel1g1
        {
            get { return inlabel1g1cont; }
            set
            {
                inlabel1g1cont = value;

                OnPropertyChanged("inlabel1g1");
            }
        }
        public string inlabel1g2
        {
            get { return inlabel1g2cont; }
            set
            {
                inlabel1g2cont = value;

                OnPropertyChanged("inlabel1g2");
            }
        }
        public string inlabel1g3
        {
            get { return inlabel1g3cont; }
            set
            {
                inlabel1g3cont = value;

                OnPropertyChanged("inlabel1g3");
            }
        }
        public string inlabel1g4
        {
            get { return inlabel1g4cont; }
            set
            {
                inlabel1g4cont = value;

                OnPropertyChanged("inlabel1g4");
            }
        }
        public string inlabel1g5
        {
            get { return inlabel1g5cont; }
            set
            {
                inlabel1g5cont = value;

                OnPropertyChanged("inlabel1g5");
            }
        }
        public string inlabel1g6
        {
            get { return inlabel1g6cont; }
            set
            {
                inlabel1g6cont = value;

                OnPropertyChanged("inlabel1g6");
            }
        }
        public string inlabel1g7
        {
            get { return inlabel1g7cont; }
            set
            {
                inlabel1g7cont = value;

                OnPropertyChanged("inlabel1g7");
            }
        }
        public string inlabel1g8
        {
            get { return inlabel1g8cont; }
            set
            {
                inlabel1g8cont = value;

                OnPropertyChanged("inlabel1g8");
            }
        }
        public string inlabel1g9
        {
            get { return inlabel1g9cont; }
            set
            {
                inlabel1g9cont = value;

                OnPropertyChanged("inlabel1g9");
            }
        }
        public string inlabel1g10
        {
            get { return inlabel1g10cont; }
            set
            {
                inlabel1g10cont = value;

                OnPropertyChanged("inlabel1g10");
            }
        }
        public string inlabel1g11
        {
            get { return inlabel1g11cont; }
            set
            {
                inlabel1g11cont = value;

                OnPropertyChanged("inlabel1g11");
            }
        }

        public string inlabel2g1
        {
            get { return inlabel2g1cont; }
            set
            {
                inlabel2g1cont = value;

                OnPropertyChanged("inlabel2g1");
            }
        }
        public string inlabel2g2
        {
            get { return inlabel2g2cont; }
            set
            {
                inlabel2g2cont = value;

                OnPropertyChanged("inlabel2g2");
            }
        }
        public string inlabel2g3
        {
            get { return inlabel2g3cont; }
            set
            {
                inlabel2g3cont = value;

                OnPropertyChanged("inlabel2g3");
            }
        }
        public string inlabel2g4
        {
            get { return inlabel2g4cont; }
            set
            {
                inlabel2g4cont = value;

                OnPropertyChanged("inlabel2g4");
            }
        }
        public string inlabel2g5
        {
            get { return inlabel2g5cont; }
            set
            {
                inlabel2g5cont = value;

                OnPropertyChanged("inlabel2g5");
            }
        }
        public string inlabel2g6
        {
            get { return inlabel2g6cont; }
            set
            {
                inlabel2g6cont = value;

                OnPropertyChanged("inlabel2g6");
            }
        }
        public string inlabel2g7
        {
            get { return inlabel2g7cont; }
            set
            {
                inlabel2g7cont = value;

                OnPropertyChanged("inlabel2g7");
            }
        }
        public string inlabel2g8
        {
            get { return inlabel2g8cont; }
            set
            {
                inlabel2g8cont = value;

                OnPropertyChanged("inlabel2g8");
            }
        }
        public string inlabel2g9
        {
            get { return inlabel2g9cont; }
            set
            {
                inlabel2g9cont = value;

                OnPropertyChanged("inlabel2g9");
            }
        }
        public string inlabel2g10
        {
            get { return inlabel2g10cont; }
            set
            {
                inlabel2g10cont = value;

                OnPropertyChanged("inlabel2g10");
            }
        }
        public string inlabel2g11
        {
            get { return inlabel2g11cont; }
            set
            {
                inlabel2g11cont = value;

                OnPropertyChanged("inlabel2g11");
            }
        }
        public string inlabel3g1
        {
            get { return inlabel3g1cont; }
            set
            {
                inlabel3g1cont = value;

                OnPropertyChanged("inlabel3g1");
            }
        }
        public string inlabel3g2
        {
            get { return inlabel3g2cont; }
            set
            {
                inlabel3g2cont = value;

                OnPropertyChanged("inlabel3g2");
            }
        }
        public string inlabel3g3
        {
            get { return inlabel3g3cont; }
            set
            {
                inlabel3g3cont = value;

                OnPropertyChanged("inlabel3g3");
            }
        }
        public string inlabel3g4
        {
            get { return inlabel3g4cont; }
            set
            {
                inlabel3g4cont = value;

                OnPropertyChanged("inlabel3g4");
            }
        }
        public string inlabel3g5
        {
            get { return inlabel3g5cont; }
            set
            {
                inlabel3g5cont = value;

                OnPropertyChanged("inlabel3g5");
            }
        }
        public string inlabel3g6
        {
            get { return inlabel3g6cont; }
            set
            {
                inlabel3g6cont = value;

                OnPropertyChanged("inlabel3g6");
            }
        }
        public string inlabel3g7
        {
            get { return inlabel3g7cont; }
            set
            {
                inlabel3g7cont = value;

                OnPropertyChanged("inlabel3g7");
            }
        }
        public string inlabel3g8
        {
            get { return inlabel3g8cont; }
            set
            {
                inlabel3g8cont = value;

                OnPropertyChanged("inlabel3g8");
            }
        }
        public string inlabel3g9
        {
            get { return inlabel3g9cont; }
            set
            {
                inlabel3g9cont = value;

                OnPropertyChanged("inlabel3g9");
            }
        }

        //outinformation
        private SolidColorBrush outborder1g1color = new SolidColorBrush();
        private SolidColorBrush outborder1g2color = new SolidColorBrush();
        private SolidColorBrush outborder1g3color = new SolidColorBrush();
        private SolidColorBrush outborder1g4color = new SolidColorBrush();
        private SolidColorBrush outborder1g5color = new SolidColorBrush();
        private SolidColorBrush outborder1g6color = new SolidColorBrush();
        private SolidColorBrush outborder1g7color = new SolidColorBrush();
        private SolidColorBrush outborder1g8color = new SolidColorBrush();
        private SolidColorBrush outinform1g9color = new SolidColorBrush();
        private SolidColorBrush outinform1g10color = new SolidColorBrush();
        private SolidColorBrush outinform2g1color = new SolidColorBrush();
        private SolidColorBrush outinform2g2color = new SolidColorBrush();
        private SolidColorBrush outinform2g3color = new SolidColorBrush();
        private SolidColorBrush outinform2g4color = new SolidColorBrush();
        private SolidColorBrush outinform2g5color = new SolidColorBrush();
        private SolidColorBrush outinform2g6color = new SolidColorBrush();
        private SolidColorBrush outinform2g7color = new SolidColorBrush();
        private SolidColorBrush outinform2g8color = new SolidColorBrush();
        private SolidColorBrush outinform2g9color = new SolidColorBrush();
        private SolidColorBrush outinform2g10color = new SolidColorBrush();
        private SolidColorBrush outinform2g11color = new SolidColorBrush();
        private SolidColorBrush outinform3g1color = new SolidColorBrush();
        private SolidColorBrush outinform3g2color = new SolidColorBrush();
        private SolidColorBrush outinform3g3color = new SolidColorBrush();
        private string outlabel1g1cont = "";
        private string outlabel1g2cont = "";
        private string outlabel1g3cont = "";
        private string outlabel1g4cont = "";
        private string outlabel1g5cont = "";
        private string outlabel1g6cont = "";
        private string outlabel1g7cont = "";
        private string outlabel1g8cont = "";
        private string outinform1g9cont = "";
        private string outinform1g10cont = "";
        private string outinform2g1cont = "";
        private string outinform2g2cont = "";
        private string outinform2g3cont = "";
        private string outinform2g4cont = "";
        private string outinform2g5cont = "";
        private string outinform2g6cont = "";
        private string outinform2g7cont = "";
        private string outinform2g8cont = "";
        private string outinform2g9cont = "";
        private string outinform2g10cont = "";
        private string outinform2g11cont = "";
        private string outinform3g1cont = "";
        private string outinform3g2cont = "";
        private string outinform3g3cont = "";
        public SolidColorBrush outborder1g1
        {
            get { return outborder1g1color; }
            set
            {
                outborder1g1color = value;

                OnPropertyChanged("outborder1g1");
            }
        }
        public SolidColorBrush outborder1g2
        {
            get { return outborder1g2color; }
            set
            {
                outborder1g2color = value;

                OnPropertyChanged("outborder1g2");
            }
        }
        public SolidColorBrush outborder1g3
        {
            get { return outborder1g3color; }
            set
            {
                outborder1g3color = value;

                OnPropertyChanged("outborder1g3");
            }
        }
        public SolidColorBrush outborder1g4
        {
            get { return outborder1g4color; }
            set
            {
                outborder1g4color = value;

                OnPropertyChanged("outborder1g4");
            }
        }
        public SolidColorBrush outborder1g5
        {
            get { return outborder1g5color; }
            set
            {
                outborder1g5color = value;

                OnPropertyChanged("outborder1g5");
            }
        }
        public SolidColorBrush outborder1g6
        {
            get { return outborder1g6color; }
            set
            {
                outborder1g6color = value;

                OnPropertyChanged("outborder1g6");
            }
        }
        public SolidColorBrush outborder1g7
        {
            get { return outborder1g7color; }
            set
            {
                outborder1g7color = value;

                OnPropertyChanged("outborder1g7");
            }
        }
        public SolidColorBrush outborder1g8
        {
            get { return outborder1g8color; }
            set
            {
                outborder1g8color = value;

                OnPropertyChanged("outborder1g8");
            }
        }
        public SolidColorBrush outinform1g9
        {
            get { return outinform1g9color; }
            set
            {
                outinform1g9color = value;

                OnPropertyChanged("outinform1g9");
            }
        }
        public SolidColorBrush outinform1g10
        {
            get { return outinform1g10color; }
            set
            {
                outinform1g10color = value;

                OnPropertyChanged("outinform1g10");
            }
        }
        public SolidColorBrush outinform2g1
        {
            get { return outinform2g1color; }
            set
            {
                outinform2g1color = value;

                OnPropertyChanged("outinform2g1");
            }
        }
        public SolidColorBrush outinform2g2
        {
            get { return outinform2g2color; }
            set
            {
                outinform2g2color = value;

                OnPropertyChanged("outinform2g2");
            }
        }
        public SolidColorBrush outinform2g3
        {
            get { return outinform2g3color; }
            set
            {
                outinform2g3color = value;

                OnPropertyChanged("outinform2g3");
            }
        }
        public SolidColorBrush outinform2g4
        {
            get { return outinform2g4color; }
            set
            {
                outinform2g4color = value;

                OnPropertyChanged("outinform2g4");
            }
        }
        public SolidColorBrush outinform2g5
        {
            get { return outinform2g5color; }
            set
            {
                outinform2g5color = value;

                OnPropertyChanged("outinform2g5");
            }
        }
        public SolidColorBrush outinform2g6
        {
            get { return outinform2g6color; }
            set
            {
                outinform2g6color = value;

                OnPropertyChanged("outinform2g6");
            }
        }
        public SolidColorBrush outinform2g7
        {
            get { return outinform2g7color; }
            set
            {
                outinform2g7color = value;

                OnPropertyChanged("outinform2g7");
            }
        }
        public SolidColorBrush outinform2g8
        {
            get { return outinform2g8color; }
            set
            {
                outinform2g8color = value;

                OnPropertyChanged("outinform2g8");
            }
        }
        public SolidColorBrush outinform2g9
        {
            get { return outinform2g9color; }
            set
            {
                outinform2g9color = value;

                OnPropertyChanged("outinform2g9");
            }
        }
        public SolidColorBrush outinform2g10
        {
            get { return outinform2g10color; }
            set
            {
                outinform2g10color = value;

                OnPropertyChanged("outinform2g10");
            }
        }
        public SolidColorBrush outinform2g11
        {
            get { return outinform2g11color; }
            set
            {
                outinform2g11color = value;

                OnPropertyChanged("outinform2g11");
            }
        }
        public SolidColorBrush outinform3g1
        {
            get { return outinform3g1color; }
            set
            {
                outinform3g1color = value;

                OnPropertyChanged("outinform3g1");
            }
        }
        public SolidColorBrush outinform3g2
        {
            get { return outinform3g2color; }
            set
            {
                outinform3g2color = value;

                OnPropertyChanged("outinform3g2");
            }
        }
        public SolidColorBrush outinform3g3
        {
            get { return outinform3g3color; }
            set
            {
                outinform3g3color = value;

                OnPropertyChanged("outinform3g3");
            }
        }

        public string outlabel1g1
        {
            get { return outlabel1g1cont; }
            set
            {
                outlabel1g1cont = value;

                OnPropertyChanged("outlabel1g1");
            }
        }
        public string outlabel1g2
        {
            get { return outlabel1g2cont; }
            set
            {
                outlabel1g2cont = value;

                OnPropertyChanged("outlabel1g2");
            }
        }
        public string outlabel1g3
        {
            get { return outlabel1g3cont; }
            set
            {
                outlabel1g3cont = value;

                OnPropertyChanged("outlabel1g3");
            }
        }
        public string outlabel1g4
        {
            get { return outlabel1g4cont; }
            set
            {
                outlabel1g4cont = value;

                OnPropertyChanged("outlabel1g4");
            }
        }
        public string outlabel1g5
        {
            get { return outlabel1g5cont; }
            set
            {
                outlabel1g5cont = value;

                OnPropertyChanged("outlabel1g5");
            }
        }
        public string outlabel1g6
        {
            get { return outlabel1g6cont; }
            set
            {
                outlabel1g6cont = value;

                OnPropertyChanged("outlabel1g6");
            }
        }
        public string outlabel1g7
        {
            get { return outlabel1g7cont; }
            set
            {
                outlabel1g7cont = value;

                OnPropertyChanged("outlabel1g7");
            }
        }
        public string outlabel1g8
        {
            get { return outlabel1g8cont; }
            set
            {
                outlabel1g8cont = value;

                OnPropertyChanged("outlabel1g8");
            }
        }
        public string Contoutinform1g9
        {
            get { return outinform1g9cont; }
            set
            {
                outinform1g9cont = value;

                OnPropertyChanged("Contoutinform1g9");
            }
        }
        public string Contoutinform1g10
        {
            get { return outinform1g10cont; }
            set
            {
                outinform1g10cont = value;

                OnPropertyChanged("Contoutinform1g10");
            }
        }
        public string Contoutinform2g1
        {
            get { return outinform2g1cont; }
            set
            {
                outinform2g1cont = value;

                OnPropertyChanged("Contoutinform2g1");
            }
        }
        public string Contoutinform2g2
        {
            get { return outinform2g2cont; }
            set
            {
                outinform2g2cont = value;

                OnPropertyChanged("Contoutinform2g2");
            }
        }
        public string Contoutinform2g3
        {
            get { return outinform2g3cont; }
            set
            {
                outinform2g3cont = value;

                OnPropertyChanged("Contoutinform2g3");
            }
        }
        public string Contoutinform2g4
        {
            get { return outinform2g4cont; }
            set
            {
                outinform2g4cont = value;

                OnPropertyChanged("Contoutinform2g4");
            }
        }
        public string Contoutinform2g5
        {
            get { return outinform2g5cont; }
            set
            {
                outinform2g5cont = value;

                OnPropertyChanged("Contoutinform2g5");
            }
        }
        public string Contoutinform2g6
        {
            get { return outinform2g6cont; }
            set
            {
                outinform2g6cont = value;

                OnPropertyChanged("Contoutinform2g6");
            }
        }
        public string Contoutinform2g7
        {
            get { return outinform2g7cont; }
            set
            {
                outinform2g7cont = value;

                OnPropertyChanged("Contoutinform2g7");
            }
        }
        public string Contoutinform2g8
        {
            get { return outinform2g8cont; }
            set
            {
                outinform2g8cont = value;

                OnPropertyChanged("Contoutinform2g8");
            }
        }
        public string Contoutinform2g9
        {
            get { return outinform2g9cont; }
            set
            {
                outinform2g9cont = value;

                OnPropertyChanged("Contoutinform2g9");
            }
        }
        public string Contoutinform2g10
        {
            get { return outinform2g10cont; }
            set
            {
                outinform2g10cont = value;

                OnPropertyChanged("Contoutinform2g10");
            }
        }
        public string Contoutinform2g11
        {
            get { return outinform2g11cont; }
            set
            {
                outinform2g11cont = value;

                OnPropertyChanged("Contoutinform2g11");
            }
        }
        public string Contoutinform3g1
        {
            get { return outinform3g1cont; }
            set
            {
                outinform3g1cont = value;

                OnPropertyChanged("Contoutinform3g1");
            }
        }
        public string Contoutinform3g2
        {
            get { return outinform3g2cont; }
            set
            {
                outinform3g2cont = value;

                OnPropertyChanged("Contoutinform3g2");
            }
        }
        public string Contoutinform3g3
        {
            get { return outinform3g3cont; }
            set
            {
                outinform3g3cont = value;

                OnPropertyChanged("Contoutinform3g3");
            }
        }
        //electric
        private SolidColorBrush Elect1g1color = new SolidColorBrush();
        private SolidColorBrush Elect1g2color = new SolidColorBrush();
        private SolidColorBrush Elect1g3color = new SolidColorBrush();
        private SolidColorBrush Elect1g4color = new SolidColorBrush();
        private SolidColorBrush Elect1g5color = new SolidColorBrush();
        private SolidColorBrush Elect1g6color = new SolidColorBrush();
        private SolidColorBrush Elect1g7color = new SolidColorBrush();
        private SolidColorBrush Elect1g8color = new SolidColorBrush();
        private SolidColorBrush Elect2g1color = new SolidColorBrush();
        private SolidColorBrush Elect2g2color = new SolidColorBrush();
        private SolidColorBrush Elect2g3color = new SolidColorBrush();
        private SolidColorBrush Elect2g4color = new SolidColorBrush();
        private SolidColorBrush Elect2g5color = new SolidColorBrush();
        private SolidColorBrush Elect2g6color = new SolidColorBrush();
        private SolidColorBrush Elect2g7color = new SolidColorBrush();
        private SolidColorBrush Elect2g8color = new SolidColorBrush();

        private string ContElect1g1cont = "";
        private string ContElect1g2cont = "";
        private string ContElect1g3cont = "";
        private string ContElect1g4cont = "";
        private string ContElect1g5cont = "";
        private string ContElect1g6cont = "";
        private string ContElect1g7cont = "";
        private string ContElect1g8cont = "";
        private string ContElect2g1cont = "";
        private string ContElect2g2cont = "";
        private string ContElect2g3cont = "";
        private string ContElect2g4cont = "";
        private string ContElect2g5cont = "";
        private string ContElect2g6cont = "";
        private string ContElect2g7cont = "";
        private string ContElect2g8cont = "";
        public SolidColorBrush Elect1g1
        {
            get { return Elect1g1color; }
            set
            {
                Elect1g1color = value;

                OnPropertyChanged("Elect1g1");
            }
        }
        public SolidColorBrush Elect1g2
        {
            get { return Elect1g2color; }
            set
            {
                Elect1g2color = value;

                OnPropertyChanged("Elect1g2");
            }
        }
        public SolidColorBrush Elect1g3
        {
            get { return Elect1g3color; }
            set
            {
                Elect1g3color = value;

                OnPropertyChanged("Elect1g3");
            }
        }
        public SolidColorBrush Elect1g4
        {
            get { return Elect1g4color; }
            set
            {
                Elect1g4color = value;

                OnPropertyChanged("Elect1g4");
            }
        }
        public SolidColorBrush Elect1g5
        {
            get { return Elect1g5color; }
            set
            {
                Elect1g5color = value;

                OnPropertyChanged("Elect1g5");
            }
        }
        public SolidColorBrush Elect1g6
        {
            get { return Elect1g6color; }
            set
            {
                Elect1g6color = value;

                OnPropertyChanged("Elect1g6");
            }
        }
        public SolidColorBrush Elect1g7
        {
            get { return Elect1g7color; }
            set
            {
                Elect1g7color = value;

                OnPropertyChanged("Elect1g7");
            }
        }
        public SolidColorBrush Elect1g8
        {
            get { return Elect1g8color; }
            set
            {
                Elect1g8color = value;

                OnPropertyChanged("Elect1g8");
            }
        }
        public SolidColorBrush Elect2g1
        {
            get { return Elect2g1color; }
            set
            {
                Elect2g1color = value;

                OnPropertyChanged("Elect2g1");
            }
        }
        public SolidColorBrush Elect2g2
        {
            get { return Elect2g2color; }
            set
            {
                Elect2g2color = value;

                OnPropertyChanged("Elect2g2");
            }
        }
        public SolidColorBrush Elect2g3
        {
            get { return Elect2g3color; }
            set
            {
                Elect2g3color = value;

                OnPropertyChanged("Elect2g3");
            }
        }
        public SolidColorBrush Elect2g4
        {
            get { return Elect2g4color; }
            set
            {
                Elect2g4color = value;

                OnPropertyChanged("Elect2g4");
            }
        }
        public SolidColorBrush Elect2g5
        {
            get { return Elect2g5color; }
            set
            {
                Elect2g5color = value;

                OnPropertyChanged("Elect2g5");
            }
        }
        public SolidColorBrush Elect2g6
        {
            get { return Elect2g6color; }
            set
            {
                Elect2g6color = value;

                OnPropertyChanged("Elect2g6");
            }
        }
        public SolidColorBrush Elect2g7
        {
            get { return Elect2g7color; }
            set
            {
                Elect2g7color = value;

                OnPropertyChanged("Elect2g7");
            }
        }
        public SolidColorBrush Elect2g8
        {
            get { return Elect2g8color; }
            set
            {
                Elect2g8color = value;

                OnPropertyChanged("Elect2g8");
            }
        }
        public string ContElect1g1
        {
            get { return ContElect1g1cont; }
            set
            {
                ContElect1g1cont = value;

                OnPropertyChanged("ContElect1g1");
            }
        }
        public string ContElect1g2
        {
            get { return ContElect1g2cont; }
            set
            {
                ContElect1g2cont = value;

                OnPropertyChanged("ContElect1g2");
            }
        }
        public string ContElect1g3
        {
            get { return ContElect1g3cont; }
            set
            {
                ContElect1g3cont = value;

                OnPropertyChanged("ContElect1g3");
            }
        }
        public string ContElect1g4
        {
            get { return ContElect1g4cont; }
            set
            {
                ContElect1g4cont = value;

                OnPropertyChanged("ContElect1g4");
            }
        }
        public string ContElect1g5
        {
            get { return ContElect1g5cont; }
            set
            {
                ContElect1g5cont = value;

                OnPropertyChanged("ContElect1g5");
            }
        }
        public string ContElect1g6
        {
            get { return ContElect1g6cont; }
            set
            {
                ContElect1g6cont = value;

                OnPropertyChanged("ContElect1g6");
            }
        }
        public string ContElect1g7
        {
            get { return ContElect1g7cont; }
            set
            {
                ContElect1g7cont = value;

                OnPropertyChanged("ContElect1g7");
            }
        }
        public string ContElect1g8
        {
            get { return ContElect1g8cont; }
            set
            {
                ContElect1g8cont = value;

                OnPropertyChanged("ContElect1g8");
            }
        }
        public string ContElect2g1
        {
            get { return ContElect2g1cont; }
            set
            {
                ContElect2g1cont = value;

                OnPropertyChanged("ContElect2g1");
            }
        }
        public string ContElect2g2
        {
            get { return ContElect2g2cont; }
            set
            {
                ContElect2g2cont = value;

                OnPropertyChanged("ContElect2g2");
            }
        }
        public string ContElect2g3
        {
            get { return ContElect2g3cont; }
            set
            {
                ContElect2g3cont = value;

                OnPropertyChanged("ContElect2g3");
            }
        }
        public string ContElect2g4
        {
            get { return ContElect2g4cont; }
            set
            {
                ContElect2g4cont = value;

                OnPropertyChanged("ContElect2g4");
            }
        }
        public string ContElect2g5
        {
            get { return ContElect2g5cont; }
            set
            {
                ContElect2g5cont = value;

                OnPropertyChanged("ContElect2g5");
            }
        }
        public string ContElect2g6
        {
            get { return ContElect2g6cont; }
            set
            {
                ContElect2g6cont = value;

                OnPropertyChanged("ContElect2g6");
            }
        }
        public string ContElect2g7
        {
            get { return ContElect2g7cont; }
            set
            {
                ContElect2g7cont = value;

                OnPropertyChanged("ContElect2g7");
            }
        }
        public string ContElect2g8
        {
            get { return ContElect2g8cont; }
            set
            {
                ContElect2g8cont = value;

                OnPropertyChanged("ContElect2g8");
            }
        }
        
        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        
    }
    /// <summary>
    /// IninformationView.xaml 的交互逻辑
    /// </summary>
    public partial class IninformationView : UserControlBase
    {
        private informationData viewformModel = new informationData();
        public SolidColorBrush RedColor = new SolidColorBrush(Color.FromRgb(255, 69, 0));
        public SolidColorBrush GreenColor = new SolidColorBrush(Color.FromRgb(173, 255, 47));
        public SolidColorBrush BoroColor = new SolidColorBrush(Color.FromRgb(220, 220, 220));
        public IninformationView()
        {
            InitializeComponent();
            DataContext = viewformModel;
        }

        private void loadFirst(object sender, EventArgs e)
        {
            if (this.IsInDesignMode)
                return;
            Task informnat = new Task(() =>
            {
                while (true)
                {
                    getinform();
                    Thread.Sleep(200);
                }
            });
            informnat.Start();
        }

        private void getinform()
        {
            var ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 00).ToString());
            if (ioi1g1.IsSucceed==false)
            {
                viewformModel.inborder1g1 = BoroColor; 
                viewformModel.inlabel1g1 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g1 = GreenColor;
                    viewformModel.inlabel1g1 = "ON";
                }
                else
                {
                    viewformModel.inborder1g1 = RedColor;
                    viewformModel.inlabel1g1 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 01).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g2 = BoroColor;
                viewformModel.inlabel1g2 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g2 = GreenColor;
                    viewformModel.inlabel1g2 = "ON";
                }
                else
                {
                    viewformModel.inborder1g2 = RedColor;
                    viewformModel.inlabel1g2 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 02).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g3 = BoroColor;
                viewformModel.inlabel1g3 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g3 = GreenColor;
                    viewformModel.inlabel1g3 = "ON";
                }
                else
                {
                    viewformModel.inborder1g3 = RedColor;
                    viewformModel.inlabel1g3 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 03).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g4 = BoroColor;
                viewformModel.inlabel1g4 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g4 = GreenColor;
                    viewformModel.inlabel1g4 = "ON";
                }
                else
                {
                    viewformModel.inborder1g4 = RedColor;
                    viewformModel.inlabel1g4 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 04).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g5 = BoroColor;
                viewformModel.inlabel1g5 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g5 = GreenColor;
                    viewformModel.inlabel1g5 = "ON";
                }
                else
                {
                    viewformModel.inborder1g5 = RedColor;
                    viewformModel.inlabel1g5 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 05).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g6 = BoroColor;
                viewformModel.inlabel1g6 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g6 = GreenColor;
                    viewformModel.inlabel1g6 = "ON";
                }
                else
                {
                    viewformModel.inborder1g6 = RedColor;
                    viewformModel.inlabel1g6 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 06).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g7 = BoroColor;
                viewformModel.inlabel1g7 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g7 = GreenColor;
                    viewformModel.inlabel1g7 = "ON";
                }
                else
                {
                    viewformModel.inborder1g7 = RedColor;
                    viewformModel.inlabel1g7 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 07).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g8 = BoroColor;
                viewformModel.inlabel1g8 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g8 = GreenColor;
                    viewformModel.inlabel1g8 = "ON";
                }
                else
                {
                    viewformModel.inborder1g8 = RedColor;
                    viewformModel.inlabel1g8 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 08).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g9 = BoroColor;
                viewformModel.inlabel1g9 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g9 = GreenColor;
                    viewformModel.inlabel1g9 = "ON";
                }
                else
                {
                    viewformModel.inborder1g9 = RedColor;
                    viewformModel.inlabel1g9 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 09).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g10 = BoroColor;
                viewformModel.inlabel1g10 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g10 = GreenColor;
                    viewformModel.inlabel1g10 = "ON";
                }
                else
                {
                    viewformModel.inborder1g10 = RedColor;
                    viewformModel.inlabel1g10 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 10).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder1g11 = BoroColor;
                viewformModel.inlabel1g11 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder1g11 = GreenColor;
                    viewformModel.inlabel1g11 = "ON";
                }
                else
                {
                    viewformModel.inborder1g11 = RedColor;
                    viewformModel.inlabel1g11 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 11).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g1 = BoroColor;
                viewformModel.inlabel2g1 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g1 = GreenColor;
                    viewformModel.inlabel2g1 = "ON";
                }
                else
                {
                    viewformModel.inborder2g1 = RedColor;
                    viewformModel.inlabel2g1 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 12).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g2 = BoroColor;
                viewformModel.inlabel2g2 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g2 = GreenColor;
                    viewformModel.inlabel2g2 = "ON";
                }
                else
                {
                    viewformModel.inborder2g2 = RedColor;
                    viewformModel.inlabel2g2 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 13).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g3 = BoroColor;
                viewformModel.inlabel2g3 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g3 = GreenColor;
                    viewformModel.inlabel2g3 = "ON";
                }
                else
                {
                    viewformModel.inborder2g3 = RedColor;
                    viewformModel.inlabel2g3 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 14).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g4 = BoroColor;
                viewformModel.inlabel2g4 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g4 = GreenColor;
                    viewformModel.inlabel2g4 = "ON";
                }
                else
                {
                    viewformModel.inborder2g4 = RedColor;
                    viewformModel.inlabel2g4 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 15).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g5 = BoroColor;
                viewformModel.inlabel2g5 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g5 = GreenColor;
                    viewformModel.inlabel2g5 = "ON";
                }
                else
                {
                    viewformModel.inborder2g5 = RedColor;
                    viewformModel.inlabel2g5 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 16).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g6 = BoroColor;
                viewformModel.inlabel2g6 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g6 = GreenColor;
                    viewformModel.inlabel2g6 = "ON";
                }
                else
                {
                    viewformModel.inborder2g6 = RedColor;
                    viewformModel.inlabel2g6 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 17).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g7 = BoroColor;
                viewformModel.inlabel2g7 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g7 = GreenColor;
                    viewformModel.inlabel2g7 = "ON";
                }
                else
                {
                    viewformModel.inborder2g7 = RedColor;
                    viewformModel.inlabel2g7 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 18).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g8 = BoroColor;
                viewformModel.inlabel2g8 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g8 = GreenColor;
                    viewformModel.inlabel2g8= "ON";
                }
                else
                {
                    viewformModel.inborder2g8 = RedColor;
                    viewformModel.inlabel2g8 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 19).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g9 = BoroColor;
                viewformModel.inlabel2g9 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g9 = GreenColor;
                    viewformModel.inlabel2g9 = "ON";
                }
                else
                {
                    viewformModel.inborder2g9 = RedColor;
                    viewformModel.inlabel2g9 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 20).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g10 = BoroColor;
                viewformModel.inlabel2g10 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g10 = GreenColor;
                    viewformModel.inlabel2g10 = "ON";
                }
                else
                {
                    viewformModel.inborder2g10 = RedColor;
                    viewformModel.inlabel2g10 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 21).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder2g11 = BoroColor;
                viewformModel.inlabel2g11 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder2g11 = GreenColor;
                    viewformModel.inlabel2g11 = "ON";
                }
                else
                {
                    viewformModel.inborder2g11 = RedColor;
                    viewformModel.inlabel2g11 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 22).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g1 = BoroColor;
                viewformModel.inlabel3g1 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g1 = GreenColor;
                    viewformModel.inlabel3g1 = "ON";
                }
                else
                {
                    viewformModel.inborder3g1 = RedColor;
                    viewformModel.inlabel3g1 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 23).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g2 = BoroColor;
                viewformModel.inlabel3g2 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g2 = GreenColor;
                    viewformModel.inlabel3g2 = "ON";
                }
                else
                {
                    viewformModel.inborder3g2 = RedColor;
                    viewformModel.inlabel3g2 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 24).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g3 = BoroColor;
                viewformModel.inlabel3g3 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g3 = GreenColor;
                    viewformModel.inlabel3g3 = "ON";
                }
                else
                {
                    viewformModel.inborder3g3 = RedColor;
                    viewformModel.inlabel3g3 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 25).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g4 = BoroColor;
                viewformModel.inlabel3g4 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g4 = GreenColor;
                    viewformModel.inlabel3g4 = "ON";
                }
                else
                {
                    viewformModel.inborder3g4 = RedColor;
                    viewformModel.inlabel3g4 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 26).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g5 = BoroColor;
                viewformModel.inlabel3g5 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g5 = GreenColor;
                    viewformModel.inlabel3g5 = "ON";
                }
                else
                {
                    viewformModel.inborder3g5 = RedColor;
                    viewformModel.inlabel3g5 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 27).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g6 = BoroColor;
                viewformModel.inlabel3g6 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g6 = GreenColor;
                    viewformModel.inlabel3g6 = "ON";
                }
                else
                {
                    viewformModel.inborder3g6 = RedColor;
                    viewformModel.inlabel3g6 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 28).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g7 = BoroColor;
                viewformModel.inlabel3g7 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g7 = GreenColor;
                    viewformModel.inlabel3g7 = "ON";
                }
                else
                {
                    viewformModel.inborder3g7 = RedColor;
                    viewformModel.inlabel3g7 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 29).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g8 = BoroColor;
                viewformModel.inlabel3g8 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g8 = GreenColor;
                    viewformModel.inlabel3g8 = "ON";
                }
                else
                {
                    viewformModel.inborder3g8 = RedColor;
                    viewformModel.inlabel3g8 = "OFF";
                }
            }
            ioi1g1 = LocalStatic.Plc.Read<bool>((63488 + 30).ToString());
            if (ioi1g1.IsSucceed == false)
            {
                viewformModel.inborder3g9 = BoroColor;
                viewformModel.inlabel3g9 = " ";
            }
            else
            {
                if (ioi1g1.Value)
                {
                    viewformModel.inborder3g9 = GreenColor;
                    viewformModel.inlabel3g9 = "ON";
                }
                else
                {
                    viewformModel.inborder3g9 = RedColor;
                    viewformModel.inlabel3g9 = "OFF";
                }
            }

        }

        //private void TimeCycle(object sender, EventArgs e)
        //{
        //    if (LocalStatic.Plc.Read<bool>("00").Value)
        //    {
        //        inborder1g1.Background = GreenColor;
        //        inlabel1g1.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g1.Background = RedColor;
        //        inlabel1g1.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("01").Value)
        //    {
        //        inborder1g2.Background = GreenColor;
        //        inlabel1g2.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g2.Background = RedColor;
        //        inlabel1g2.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("02").Value)
        //    {
        //        inborder1g3.Background = GreenColor;
        //        inlabel1g3.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g3.Background = RedColor;
        //        inlabel1g3.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("03").Value)
        //    {
        //        inborder1g4.Background = GreenColor;
        //        inlabel1g4.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g4.Background = RedColor;
        //        inlabel1g4.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("04").Value)
        //    {
        //        inborder1g5.Background = GreenColor;
        //        inlabel1g5.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g5.Background = RedColor;
        //        inlabel1g5.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("05").Value)
        //    {
        //        inborder1g6.Background = GreenColor;
        //        inlabel1g6.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g6.Background = RedColor;
        //        inlabel1g6.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("06").Value)
        //    {
        //        inborder1g7.Background = GreenColor;
        //        inlabel1g7.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g7.Background = RedColor;
        //        inlabel1g7.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("07").Value)
        //    {
        //        inborder1g8.Background = GreenColor;
        //        inlabel1g8.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g8.Background = RedColor;
        //        inlabel1g8.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("10").Value)
        //    {
        //        inborder1g9.Background = GreenColor;
        //        inlabel1g9.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g9.Background = RedColor;
        //        inlabel1g9.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("11").Value)
        //    {
        //        inborder1g10.Background = GreenColor;
        //        inlabel1g10.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g10.Background = RedColor;
        //        inlabel1g10.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("12").Value)
        //    {
        //        inborder1g11.Background = GreenColor;
        //        inlabel1g11.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder1g11.Background = RedColor;
        //        inlabel1g11.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("13").Value)
        //    {
        //        inborder2g1.Background = GreenColor;
        //        inlabel2g1.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g1.Background = RedColor;
        //        inlabel2g1.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("14").Value)
        //    {
        //        inborder2g2.Background = GreenColor;
        //        inlabel2g2.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g2.Background = RedColor;
        //        inlabel2g2.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("15").Value)
        //    {
        //        inborder2g3.Background = GreenColor;
        //        inlabel2g3.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g3.Background = RedColor;
        //        inlabel2g3.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("16").Value)
        //    {
        //        inborder2g4.Background = GreenColor;
        //        inlabel2g4.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g4.Background = RedColor;
        //        inlabel2g4.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("17").Value)
        //    {
        //        inborder2g5.Background = GreenColor;
        //        inlabel2g5.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g5.Background = RedColor;
        //        inlabel2g5.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("20").Value)
        //    {
        //        inborder2g6.Background = GreenColor;
        //        inlabel2g6.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g6.Background = RedColor;
        //        inlabel2g6.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("21").Value)
        //    {
        //        inborder2g7.Background = GreenColor;
        //        inlabel2g7.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g7.Background = RedColor;
        //        inlabel2g7.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("22").Value)
        //    {
        //        inborder2g8.Background = GreenColor;
        //        inlabel2g8.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g8.Background = RedColor;
        //        inlabel2g8.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("23").Value)
        //    {
        //        inborder2g9.Background = GreenColor;
        //        inlabel2g9.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g9.Background = RedColor;
        //        inlabel2g9.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("24").Value)
        //    {
        //        inborder2g10.Background = GreenColor;
        //        inlabel2g10.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g10.Background = RedColor;
        //        inlabel2g10.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("25").Value)
        //    {
        //        inborder2g11.Background = GreenColor;
        //        inlabel2g11.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder2g11.Background = RedColor;
        //        inlabel2g11.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("26").Value)
        //    {
        //        inborder3g1.Background = GreenColor;
        //        inlabel3g1.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g1.Background = RedColor;
        //        inlabel3g1.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("27").Value)
        //    {
        //        inborder3g2.Background = GreenColor;
        //        inlabel3g1.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g2.Background = RedColor;
        //        inlabel3g1.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("30").Value)
        //    {
        //        inborder3g3.Background = GreenColor;
        //        inlabel3g3.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g3.Background = RedColor;
        //        inlabel3g3.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("31").Value)
        //    {
        //        inborder3g4.Background = GreenColor;
        //        inlabel3g4.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g4.Background = RedColor;
        //        inlabel3g4.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("32").Value)
        //    {
        //        inborder3g5.Background = GreenColor;
        //        inlabel3g5.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g5.Background = RedColor;
        //        inlabel3g5.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("33").Value)
        //    {
        //        inborder3g6.Background = GreenColor;
        //        inlabel3g6.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g6.Background = RedColor;
        //        inlabel3g6.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("34").Value)
        //    {
        //        inborder3g7.Background = GreenColor;
        //        inlabel3g7.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g7.Background = RedColor;
        //        inlabel3g7.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("35").Value)
        //    {
        //        inborder3g8.Background = GreenColor;
        //        inlabel3g8.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g8.Background = RedColor;
        //        inlabel3g8.Content = "OFF";
        //    }
        //    if (LocalStatic.Plc.Read<bool>("36").Value)
        //    {
        //        inborder3g9.Background = GreenColor;
        //        inlabel3g9.Content = "ON";
        //    }
        //    else
        //    {
        //        inborder3g9.Background = RedColor;
        //        inlabel3g9.Content = "OFF";
        //    }
        ////}
    }
}
